{#
(C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com>

This file is part of "vikuit".

"vikuit" is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

"vikuit" is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with "vikuit".  If not, see <http://www.gnu.org/licenses/>.
#} <header>
<div class="navbar navbar-inverse navbar-fixed-top">
		  <div class="navbar-inner">
		    <div class="container">
		     <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target="#menu">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
		    <a class="brand" href="/"> </a>
		     
		    		<ul class="nav pull-right">
								{% if sess.user %}
								 
								 <li><span class="icon-envelope icon-white"></span></li>
							
								<li class="profile"><a href="#" class="dropdown-toggle" data-toggle="dropdown"> <span class="avatar"><img src="/images/user/thumbnail/{{ user.nickname|escape }}"
										alt="{{ user.nickname|escape }}" class="img-rounded" /></span> </a>
									<ul class="dropdown-menu">
										<li><a href="/module/user.events" class="button more_ntop_element"><img src="/static/images/heart.png"
												alt="" class="icon" /> {{ _('Your lifestreaming') }}</a></li>
										<li><a href="/module/user/{{ user.nickname }}" class="button more_ntop_element"><img
												src="/static/images/user.png" alt="" class="icon" /> {{ _('Your public profile') }}</a></li>
										<li><a href="/module/user.articles/{{ user.nickname }}" class="button more_ntop_element"><img
												src="/static/images/page_white_text.png" alt="" class="icon" /> {{ _('Your articles') }}</a></li>
										<li><a href="/module/user.forums/{{ user.nickname }}" class="button more_ntop_element"><img
												src="/static/images/comments.png" alt="" class="icon" /> {{ _('Your threads') }}</a></li>
										<li><a href="/module/user.favourites/{{ user.nickname }}" class="button more_ntop_element"><img
												src="/static/images/star.png" alt="" class="icon" /> {{ _('Your favorites') }}</a></li>
										<li><a href="/module/user.communities/{{ user.nickname }}" class="button more_ntop_element"><img
												src="/static/images/community.png" alt="" class="icon" /> {{ _('Your communities') }}</a></li>
										<li><a href="/module/user.contacts/{{ user.nickname }}" class="button more_ntop_element"><img
												src="/static/images/user.png" alt="" class="icon" /> {{ _('Your contacts') }}</a></li>
										<li><a href="/invite" class="button more_ntop_element"><img src="/static/images/user_comment.png" alt=""
												class="icon" /> {{ _('Invite your friends') }} </a></li>
										<li><hr></li>
										<li><a href="/message.inbox" class="button more_ntop_element"><img src="/static/images/email.png" alt=""
												class="icon" /> {{ _('Inbox') }} {% if user.unread_messages %}({{ user.unread_messages}}){% endif %}</a></li>
										<li><a href="/message.sent" class="button more_ntop_element"><img src="/static/images/email_edit.png"
												alt="" class="icon" /> {{ _('Sent messages') }}</a></li>
										<li class="li_last_round">&nbsp;</li>
										<li><a href="/module/user.changepassword?redirect_to={{ redirect }}" class="button more_ntop_element"><img
												src="/static/images/key.png" alt="" class="icon" />{{ _('Change password') }}</a></li>
										<li><a href="/module/user.edit" class="button more_ntop_element"><img src="/static/images/cog.png" alt=""
												class="icon" />{{ _('Preferences') }}</a></li>
										<li><hr></li>
										<li><a href="{{ logout }}" class="button more_ntop_element"><img src="/static/images/logout.png" alt=""
												class="icon" />{{ _('Logout') }}</a></li>
										<li class="li_last_round">&nbsp;</li>
									</ul>
								</li>
								
								
								{% else %}
								<li><a data-toggle="modal" href="remote.html" data-target="#loginForm">{{ _('Log in') }}</a></li>
								<li><a href="/module/user.register?redirect_to={{ redirect }}">{{ _('Register') }}</a></li> 
								{% endif %}
							</ul>
							
							
		      </div><!-- /.nav-collapse -->
		    </div><!-- /.container -->
		  </div><!-- /navbar-inner -->
 
</header> {% block javascript %} {% endblock %}